package com.manshutingyu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.manshutingyu.system.domain.SysRoleMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author：yinyuxia
 * @Date：2025/3/31 09:42
 */
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
    @Select("  SELECT   rm.menu_id  FROM   sys_role_menu rm  INNER JOIN sys_menu m ON rm.menu_id = m.id WHERE    rm.role_id = #{roleId} ")
    List<Long> listMenuIdsByRoleId(@Param("roleId") Long roleId);
}
